import fileHttp from "@/api/fileHttp";

/**
 * 文件上传服务类
 */
export class UploadService {
    /**
     * 上传文件
     * @param query
     * @returns {Promise<AxiosResponse<any>>}
     * @constructor
     */
    static UploadFile(query) {
        return fileHttp({
            url: '/api/file/upload',
            method: 'post',
            data: query
        })
    }
}
